package ru.ifmo.ctddev.larionov.task9;

public class Main {

	public static void main(String[] args) {
		byte[] address = { 127, 0, 0, 1 };
		int port = 12345;
		Thread server = new Thread(new Runnable() {
			
			@Override
			public void run() {
				String[] str = {"12345"};
				HelloUDPServer.main(str);			
			}
		});
		
		server.start();
		HelloUDPClient client = new HelloUDPClient(address, port, "first");
		try {
			Thread.sleep(5000);
		} catch (InterruptedException e) {

		}
		System.exit(0);
	}
}
